private ["_not_found","_idx","_briefing_title_name","_briefing_desc_name","_briefing_title","_briefing_desc"];

_not_found = 0;
_idx = 0;
while { _not_found < 2 } do {
	_briefing_title_name = format ["STR_Briefing_Title_%1",_idx];
	_briefing_desc_name = format ["STR_Briefing_Desc_%1",_idx];
	
	_briefing_title = localize _briefing_title_name;
	_briefing_desc = localize _briefing_desc_name;
	if (!isnil "_briefing_title" && !isnil "_briefing_desc") then {
		if (_briefing_title !="" && _briefing_desc!="") then {
			player createDiaryRecord ["Diary", [_briefing_title, _briefing_desc]];
		} else{
			_not_found = _not_found + 1;
		};
	} else{
		_not_found = _not_found + 1;
	};
	_idx = _idx + 1;
};